//请求登录时要提交的数据类型
export interface LoginParams {
    username: string;
    password: string;
}

//登录成功后返回的数据类型
interface LoginSuccessResult {
    token?: string;
    message?: string;
}

export interface LoginResult {
    code: number;
    data: LoginSuccessResult
}

interface user {
    userId: number,
    avatar: string,
    username: string,
    password: string,
    desc: string,
    roles: string[],
    buttons: string[],
    routes: string[],
    token: string,
}

interface userinfo {
    checkUser: user
}

export interface Getuserinfotype {
    code: number;
    data:userinfo
}